<template>
  <div class="outer">
    <h2>{{ title }}分类</h2>
    <ul>
      <li v-for="item in list" :key="item.id">
        {{ item.content }}
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    props: ["list", "title"],
    name: "Item",
  };
</script>

<style>
  .outer {
    background: rgb(236, 193, 199);
    width: 200px;
    height: 200px;
  }
  h2 {
    background-color: rgba(255, 255, 224, 0.58);
    text-align: center;
  }
</style>
